gabrielemariotti/cardslib

using a custom layout

Opened this issue · 0 comments

Hello @gabrielemariotti
i want to set a gauge from another library in a layout and then use it in a card
the problem is when the card is set its a blank gauge with no parameters has set
View Speedmetter =LayoutInflater.from(getApplicationContext()).inflate(R.layout.native_card_thumbnail_layout,null);
speedometer = (SpeedometerGauge) Speedmetter.findViewById(R.id.speedometer);
Card card = new Card(speedometer.getContext(),R.layout.native_card_thumbnail_layout);

can u help me with this please?
Thank you