DiscreteScrollView
DiscreteScrollView copied to clipboard
DiscreteScrollView's item width problem
Hi!
Firstly, Thanks for this awesome and useful library. however, I have a question regarding to Item width:
.xml file of DiscreteScrollView containing view
<?xml version="1.0" encoding="utf-8"?>
<com.yarolegovich.discretescrollview.DiscreteScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/font_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:dsv_orientation="vertical" />
ItemOfDiscCreateScrollView .xml file
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/font_name"
android:layout_width="match_parent"
android:layout_height="24dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="4dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="4dp"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="center_vertical|start"
android:marqueeRepeatLimit="-1"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:scrollHorizontally="true"
android:singleLine="true"
android:textSize="12sp"
tools:text="Open-sans" />
Here, In the item of DisCreateScrollView I don't give any fix width to the textView but It take fix width.
See Screen Short.
Please, Can you help me.
@PrinceDholakiya Did you manage to solve your problem? Because I am facing the same issue, and I am trying to use this view for the same purpose: I need a font selector view.
Thanks in advance