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

DiscreteScrollView's item width problem #157

Open
PrinceDholakiya opened this issue Jan 4, 2019 · 1 comment
Open

DiscreteScrollView's item width problem #157

PrinceDholakiya opened this issue Jan 4, 2019 · 1 comment
Labels
can't reproduce Include please a sample project where I can reproduce the issue.

Comments

@PrinceDholakiya
Copy link

PrinceDholakiya commented Jan 4, 2019

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.

screenshot_20190104-140210_font 20demo 20module
screenshot_20190104-140227_font 20demo 20module

Please, Can you help me.

@mcghorayeb
Copy link

mcghorayeb commented Jan 22, 2019

@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

@yarolegovich yarolegovich added the can't reproduce Include please a sample project where I can reproduce the issue. label Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't reproduce Include please a sample project where I can reproduce the issue.
Projects
None yet
Development

No branches or pull requests

3 participants