Note that there are some explanatory texts on larger screens.

plurals
  1. POA Simple Misunderstanding: How can I incorporate java class on Android
    primarykey
    data
    text
    <p>this maybe the simpliest question therein, but please be considerate for me.</p> <p>I am researching some tutorial/s regarding how to wrap text inside a EditText and I think these links will help me a lot.</p> <p><a href="https://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds/5535672#5535672">StackOverFlow Answer 1</a></p> <p><a href="https://stackoverflow.com/questions/2617266/how-to-adjust-text-font-size-to-fit-textview/7875656#7875656">StackOverFlow Answer 2</a></p> <p>Now my question is, how can I incorporate that java class. As you see I am still a student and I have little experience on these <strong>extends</strong>. I've tried using instantiate (I am more prone on vb.net) and here is my code</p> <pre><code>private AutoResizeTextView autoResizeTextView;// instantiate //and on my textview txtCalc.setTextSize(autoResizeTextView); </code></pre> <p>it isnt working. Can you help me fix my declaration cause I am trying to create a calculator for my school project?</p> <p>Thanks a lot for your time and effort</p> <p><strong>EDIT</strong> I dont know if I understand it correctly but this what I do on my layout </p> <pre><code> &lt;com.bracks.androidtest.AutoResizeTextView android:id="@+id/screen" android:layout_width="285dp" android:layout_height="54dp" android:layout_gravity="center" android:layout_marginTop="5dp" android:background="@drawable/box_border" android:clickable="false" android:enabled="false" android:gravity="center" android:longClickable="false" android:textColor="#333333" android:textSize="30dp" /&gt; </code></pre> <p>Sir it isnt working. I dont know if that is because of the code</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload