我正在使用RecyclerView和GridLayoutManager来开发一个库。我希望肖像和风景图像在网格中显示为相同的大小。我该怎么做?
答案 0 :(得分:0)
您遇到了什么问题。只需在图片视图中添加固定尺寸。
<ImageView
android:id="@+id/imageView1"
android:layout_width="100dp"
android:layout_height="100dp"
/>
答案 1 :(得分:0)
这对我有用。
$target_file = APPPATH.'views/email/test.tpl';
$assets_url = base_url().'/assets/images/';
$body = file_get_contents($target_file);
$email_variable = array('(uname)'=>$email, '(sitename)'=>$sitename,'(link)'=>$link,'(pwd)'=>"",'(assests_url)' => $assets_url,'(base_url)' => base_url());
$body = strtr($body,$email_variable);
$this->email->set_mailtype("html");
$this->email->from($from, $sitename);
$this->email->to($email);
$this->email->subject($sub);
$this->email->message($body);
$this->email->send();
$this->email->set_newline("\r\n");