Questions tagged [android-inflate]

Instantiates a layout XML file into its corresponding View objects

651 questions
-2
votes
2 answers

Android: Set font family to textview before inflate xml file

I want set font family to Textview But i want this action before load xml My code : for(int i=0;i++;i<100000){ final View addNew = G.inflater.inflate(R.layout.post, null); TextView txtTitle = (TextView)…
Mohammad
  • 111
  • 2
  • 13
-2
votes
2 answers

what is is the difference between inflating layout methods and what are these parameters for

I found out that you can inflate Layout in these 3 ways. But cannot get the use of 2nd and 3rd parameters in respective statements. What is the ViewGroup and attachedToroot parameters for? First use for outside an Activity: LayoutInflater inflater =…
Mahdi
  • 6,139
  • 9
  • 57
  • 109
-2
votes
2 answers

Android: difficulties referencing resources

I'm still a newbie to android programming, so i tried a tutorial that was to help create a music app. At a stage in the tutorial i was asked to create a new class that extends base Adapter and at a point in this new class i was asked to use Layout…
-2
votes
1 answer

ANR while inflating layout in which upload image from url in android?

I m trying to show image from URL but while showing image when i touch the screen or want to scroll than it show app not responding. What i do on my code:- Inflate four different-2 type of xml on main screen in which I'm showing images which comes…
duggu
  • 37,851
  • 12
  • 116
  • 113
-3
votes
1 answer

Can't reach TextView parameters while inflating tableRow

I'm new to Android developing. At the moment I'm trying to fill in a TableLayout with my data. The Data part works just well but TextView parameters from TableRow don't affect my design. Here's my Activity whith the table:
Kirill
  • 163
  • 1
  • 10
-3
votes
1 answer

LayoutInflater doesn't works in PreferenceFragment

I'm building a PrefenceFragment but I've a problem to inflate a custom layout within the fragment. Pratically, I created a custom layout to inflate but doesn't works (the layout was not inflated). I'm trying some solutions but I don't understand…
1 2 3
43
44