Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrow not in center #135

Open
oliverKucharovic opened this issue Sep 10, 2018 · 2 comments
Open

Arrow not in center #135

oliverKucharovic opened this issue Sep 10, 2018 · 2 comments

Comments

@oliverKucharovic
Copy link

how can i set the arrow to the center horizontal

<LinearLayout

  android:id="@+id/llPhone"
  android:orientation="horizontal"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layout_marginLeft="@dimen/margin_huge"
  android:layout_marginRight="@dimen/margin_huge"
  app:layout_constraintTop_toBottomOf="@id/tv_set_your_number"
  >
  <fr.ganfra.materialspinner.MaterialSpinner
    android:id="@+id/spPhone"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"

    android:layout_gravity="center_vertical"
    android:gravity="center_vertical"

    app:ms_enableErrorLabel="false"
    app:ms_multiline="false"
    app:ms_enableFloatingLabel="false"
    app:ms_thickness="0px"
    app:ms_errorColor="@color/red"
    app:ms_hintColor="@color/red"
    app:ms_arrowColor="@color/text_color_primary"
    app:ms_arrowSize="@dimen/margin_medium"
    app:ms_alignLabels="false"
    android:visibility="visible"
    >
  </fr.ganfra.materialspinner.MaterialSpinner>
  <include
    android:layout_width="1dp"
    android:layout_height="match_parent"
    android:layout_margin="@dimen/margin_large"
    layout="@layout/divider"
    />

  <android.support.design.widget.TextInputLayout
    android:id="@+id/tiPhone"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    >

    <EditText
      style="@style/Text.TextInput"
      android:id="@+id/etPhone"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:paddingBottom="@dimen/margin_larger"
      android:inputType="phone"
      android:background="@null"
      />
  </android.support.design.widget.TextInputLayout>
</LinearLayout>

image

@oliverKucharovic
Copy link
Author

oliverKucharovic commented Sep 10, 2018

spinner item
<TextView

style="@style/Text.SpItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/red_dark"
/>

@Chivorns
Copy link

Hi you can try to check this library: https://github.com/Chivorns/SmartMaterialSpinner.
Hope it can help what you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants